// obtain elapsed time in seconds from Timer 4 / 5 combination
// Use this in combination with (after) WriteTimer45(0) that resets the timer.
// In initialize() routine, open the timer with OpenTimer45(T4_ON | T4_SOURCE_INT, T45_PRESCALER);

#include "userLib.h"

extern UINT16 TimerTicksPerMicrosec;	// set in picInit(), used in timer funcs eg delayTx

double elapsedTime45()
{
	return( (double)ReadTimer45() / (double)TimerTicksPerMicrosec / (double)1000000 );
}
